﻿@{
    ViewData["Title"] = "修改密码";
}

<form class="layui-form layui-form-pane">
    @Html.AntiForgeryToken()
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">登陆用户</label>
        <div class="layui-input-inline">
            <input type="hidden" name="Id" class="layui-input Id" value="@(ViewData["UserId"])">
            <input type="text" name="UserName" class="layui-input UserName" value="@(ViewData["UserName"])" disabled>
        </div>
        <div class="layui-form-mid layui-word-aux">登录名</div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">旧密码</label>
        <div class="layui-input-inline">
            <input type="password" name="OldPwd" required lay-verify="required|pass" placeholder="请输入旧密码" autocomplete="off" class="layui-input OldPwd">
        </div>
        <div class="layui-form-mid layui-word-aux">请输入旧密码</div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">新密码</label>
        <div class="layui-input-inline">
            <input type="password" id="NewPwd" name="NewPwd" required lay-verify="required|pass" placeholder="请输入一个新的密码" autocomplete="off" class="layui-input NewPwd">
        </div>
        <div class="layui-form-mid layui-word-aux">请输入一个新的密码</div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">确认新密码</label>
        <div class="layui-input-inline">
            <input type="password" name="ConfirmNewPwd" required lay-verify="required|pass|confimpass" placeholder="请确认新密码" autocomplete="off" class="layui-input ConfirmNewPwd">
        </div>
        <div class="layui-form-mid layui-word-aux">请确认新密码</div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button id="editPwd" class="layui-btn editPwd" lay-submit="" lay-filter="editPwd">确认修改</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>

</form>

@section Scripts {

    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script type="text/javascript" src="~/js/account.editpwd.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}
